package com.xiaoxx.netty;


import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ServerStarter implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments args) {
        try {
            new SocketServer(9091, 1, 1);
        } catch (Exception e) {
            log.info("服务端启动异常：{}", e.getMessage(), e);
        }
    }
}

